/**
 * Copyright (c) 2022 www.talkweb.com.cn Inc. AlL rights reserved.
 */
package com.sky.wsp.mybatis.plus.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.wsp.mybatis.plus.dao.UserJoinOrgMapper;
import com.sky.wsp.mybatis.plus.dao.vo.UserOrgVO;
import com.sky.wsp.mybatis.plus.service.IUserJoinOrgService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;


/**
 * 用户表 Service服务实现类
 *
 * @author wangshaopeng@talkweb.com.cn
 * @Date 2023-01-11
 */
@Service
@Transactional
public class UserJoinOrgServiceImpl extends ServiceImpl<UserJoinOrgMapper, UserOrgVO> implements IUserJoinOrgService {

    @Resource
    private UserJoinOrgMapper userJoinOrgMapper;

    @Override
    @Transactional(readOnly = true)
    public Page<UserOrgVO> findPage(UserOrgVO query, Page<UserOrgVO> page) {
        return userJoinOrgMapper.findPage(query, page);
    }

    @Override
    @Transactional(readOnly = true)
    public List<UserOrgVO> findList(UserOrgVO query) {
        return userJoinOrgMapper.findList(query);
    }

    @Override
    public UserOrgVO myFindById(Long id) {
        return userJoinOrgMapper.myFindById(id);
    }

    @Override
    @Transactional(readOnly = true)
    public UserOrgVO myFindByIdNoTenant(Long id) {
        return userJoinOrgMapper.myFindByIdNoTenant(id);
    }
}
